home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / t_os / shell / tsbgex / src / video / bios.asm next >
Encoding:
Assembly Source File  |  1994-11-16  |  574 b   |  41 lines

  1.     assume    cs:text
  2. text    segment    para public 'CODE'
  3.  
  4.     public    _setfs
  5. _setfs    proc    near
  6.     mov    ax,4[esp]
  7.     mov    fs,ax
  8.     ret
  9. _setfs    endp
  10.  
  11.     public    _getmode
  12. _getmode proc    near
  13.     push    fs
  14.     mov    ax,0110H    ; tbios selector
  15.     mov    fs,ax
  16.     mov    ah,1        ; get screen mode
  17.     call    pword ptr fs:[01c0H]    ; system info BIOS
  18.     pop    fs
  19.     ret
  20. _getmode endp
  21.  
  22.     public    _putfs
  23. _putfs    proc    near
  24.     push    ebx
  25.     mov    eax,8[esp]
  26.     mov    ebx,12[esp]
  27.     mov    fs:[eax],ebx
  28.     pop    ebx
  29.     ret
  30. _putfs    endp
  31.  
  32.     public    _getfs
  33. _getfs    proc    near
  34.     mov    eax,4[esp]
  35.     mov    eax,fs:[eax]
  36.     ret
  37. _getfs    endp
  38.  
  39. text    ends
  40.     end
  41.